// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import App from './App.vue'
import router from './router'

// 


const app = createApp(App)
app.config.globalProperties.$haha = '孙悟空'




// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 导入持久化插件
import piniPersist from 'pinia-plugin-persist'
// 使用插件
const pinia = createPinia()
pinia.use(piniPersist)

app.use(ElementPlus)
app.use(pinia)
app.use(router)


app.mount('#app')
